﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:localDayCalendar="clr-namespace:SLControlLibrary.Resources.Controls.Calendar.DayCalendar">

  <Style TargetType="localDayCalendar:ucDayCalendar">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="localDayCalendar:ucDayCalendar">
          <Grid>
            <Grid
                Margin="2,25,0,0"
                Height="130"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Width="111">
              <Grid.RowDefinitions>
                <RowDefinition Height="0.338*"/>
                <RowDefinition Height="0.662*"/>
              </Grid.RowDefinitions>
              <Border
                  HorizontalAlignment="Center"
                  Width="108"
                  Background="{TemplateBinding HeaderBackground}"
                  BorderBrush="{TemplateBinding HeaderBorderBrush}"
                  BorderThickness="{TemplateBinding HeaderBorderThickness}">
                <TextBlock
                    Margin="21,-1,23,7"
                    TextWrapping="Wrap"
                    FontSize="24"
                    TextAlignment="Center"
                    HorizontalAlignment="Center"
                    Text="{TemplateBinding MonthDesc}"
                    Foreground="{TemplateBinding HeaderForeground}"/>
              </Border>
              <Border
                  Grid.Row="1"
                  HorizontalAlignment="Center"
                  VerticalAlignment="Center"
                  Height="86"
                  Width="108"
                  Background="{TemplateBinding ContentBackground}"
                  BorderBrush="{TemplateBinding ContentBorderBrush}"
                  BorderThickness="{TemplateBinding ContentBorderThickness}" >
                <TextBlock
                    Margin="17,6,16,11"
                    TextWrapping="Wrap"
                    FontSize="40"
                    TextAlignment="Center"
                    RenderTransformOrigin="0.5,0.5"
                    Height="64"
                    Foreground="{TemplateBinding ContentForeground}"
                    Text="{TemplateBinding DayDesc}"/>
              </Border>
              <Rectangle
                  Stroke="Black"
                  StrokeThickness="2"
                  HorizontalAlignment="Right"
                  Margin="0,0,-63,-2"
                  Width="82"
                  Clip="M-12.106176,-45.844589 L36.484955,-16.046904 L10.346635,26.576897 L-38.244495,-3.2207892 z"
                  RenderTransformOrigin="0.5,0.5"
                  UseLayoutRounding="False"
                  Grid.Row="1"
                  Height="45"
                  VerticalAlignment="Bottom">
                <Rectangle.Fill>
                  <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <LinearGradientBrush.RelativeTransform>
                      <TransformGroup>
                        <ScaleTransform CenterX="0.5" CenterY="0.5"/>
                        <SkewTransform CenterX="0.5" CenterY="0.5"/>
                        <RotateTransform Angle="-49" CenterX="0.5" CenterY="0.5"/>
                        <TranslateTransform/>
                      </TransformGroup>
                    </LinearGradientBrush.RelativeTransform>
                    <GradientStop Color="#FFB7B3B3" Offset="0.157"/>
                    <GradientStop Color="White"/>
                  </LinearGradientBrush>
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                  <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="-31.518"/>
                    <TranslateTransform/>
                  </TransformGroup>
                </Rectangle.RenderTransform>
                <Rectangle.Effect>
                  <BlurEffect Radius="3"/>
                </Rectangle.Effect>
              </Rectangle>
            </Grid>
            <Ellipse
                Fill="#FF494747"
                Height="14"
                HorizontalAlignment="Left"
                Margin="13,28,0,0"
                VerticalAlignment="Top"
                Width="11"/>
            <Rectangle
                Stroke="Black"
                RadiusX="9"
                RadiusY="8"
                Height="30"
                HorizontalAlignment="Left"
                Margin="14,9,0,0"
                VerticalAlignment="Top"
                Width="9">
              <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                  <GradientStop Color="#FF494747" Offset="1"/>
                  <GradientStop Color="White" Offset="0.664"/>
                  <GradientStop Color="#FF828282" Offset="0.849"/>
                </LinearGradientBrush>
              </Rectangle.Fill>
            </Rectangle>
            <Ellipse
                Fill="#FF494747"
                Height="14"
                HorizontalAlignment="Left"
                Margin="92,28,0,0"
                VerticalAlignment="Top"
                Width="11"/>
            <Rectangle
                Stroke="Black"
                RadiusX="9"
                RadiusY="8"
                Height="30"
                HorizontalAlignment="Left"
                Margin="93,9,0,0"
                VerticalAlignment="Top"
                Width="9">
              <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                  <GradientStop Color="#FF494747" Offset="1"/>
                  <GradientStop Color="White" Offset="0.664"/>
                  <GradientStop Color="#FF828282" Offset="0.849"/>
                </LinearGradientBrush>
              </Rectangle.Fill>
            </Rectangle>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
</ResourceDictionary>
